package com.mzj.saas.mservice.contract.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 合同附件明细表
 */
@Entity
@Table(name = "saas_house_contract_attachment")
public class HouseContractAttachment extends IdEntity {
    @Basic
    @Column(name = "contract_nubmer", nullable = true)
    private String contractNubmer; //签约编号

    @Basic
    @Column(name = "type", nullable = true)
    private Integer type; //类型

    @Basic
    @Column(name = "attachment_id", nullable = true)
    private Long attachmentId; //附件id

    @Basic
    @Column(name = "name", nullable = true)
    private String name; //名称

    @Basic
    @Column(name = "unit", nullable = true)
    private String unit; //单位

    @Basic
    @Column(name = "current_situation", nullable = true)
    private String currentSituation; //现状

    @Basic
    @Column(name = "unit_price", nullable = true)
    private String unitPrice; //单价

    @Basic
    @Column(name = "operator_id", nullable = true)
    private String operatorId; //操作人

    @Basic
    @Column(name = "update_user_id", nullable = true)
    private String updateUserId; //最后修改人

    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime; //最后操作时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContractNubmer() {
        return contractNubmer;
    }

    public void setContractNubmer(String contractNubmer) {
        this.contractNubmer = contractNubmer;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentId(Long attachmentId) {
        this.attachmentId = attachmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCurrentSituation() {
        return currentSituation;
    }

    public void setCurrentSituation(String currentSituation) {
        this.currentSituation = currentSituation;
    }

    public String getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
}
